package com.BlackHourse.P1.demo1;

public class ConvertDemo {
    public static void main(String[] args) {
        //自动类型转换
        double d = 10;//自动转换为了浮点类型得数据
        System.out.println(d);

        //byte类型转换
        byte b = 10;
        short s = b;
        int i = b;
        System.out.println(b);
        System.out.println(s);

//        char c = b;

        //强制类型转换
        int i1 = (int)55.55;
        System.out.println(i1);
    }
}
